import request from '@/utils/request'

export const addOneGoods = data => request({
  url: '/addOneGoods',
  method: 'put',
  data: data || {}
})

export const updateOneGoodsById = data => request({
  url: '/updateOneGoodsById',
  method: 'patch',
  data: data || {}
})

export const getGoodsList = data => request({
  url: '/getGoodsList',
  method: 'post',
  data: data || {}
})

